let weekDays = ['星期天', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
let week;
let weekDay = '';
let currentDate = '';

function getDate() {
    let day = new Date();
    let year = day.getFullYear();
    let month = day.getMonth() + 1;
    let d = day.getDate();
    currentDate = year + '年' + month + '月' + d + '日';
    $('#date').text(currentDate);
    week = day.getDay();
    weekDay = weekDays[week];
    $('#week').text(weekDay);
}

$(function () {
    getDate();
});

